using System.Windows.Forms;

namespace HogoLogic.Options
{
	public partial class AnnotateOptionsUC : UserControl
	{
		public AnnotateOptionsUC()
		{
			InitializeComponent();
		}
		
		public AnnotateOptions Options
		{
			get
			{
				return new AnnotateOptions(userCheck.Checked,
					dateCheck.Checked,
					revisionCheck.Checked,
					changesetCheck.Checked,
					lineNumberCheck.Checked);
			}
			set
			{
				userCheck.Checked = value.User;
				dateCheck.Checked = value.Date;
				revisionCheck.Checked = value.Revision;
				changesetCheck.Checked = value.Changeset;
				lineNumberCheck.Checked = value.LineNumber;
			}
		}
	}
}
